package adapterPattern;

public class Wash implements ThreeElectricOutlet {
    String name;
    public Wash() {
        name = "黄河洗衣机";
    }
    public Wash(String name) {
        this.name = name;
    }
    @Override
    public void connectElectricCurrnent() {
        turnOn();
    }
    public void turnOn(){
        System.out.println(name + "开始洗衣物。");
    }
    public static void main(String [] args){
        Wash w = new Wash();
        w.connectElectricCurrnent();
    }
}

